/*
package com.beyond.service.init;

import java.util.List;

import org.apache.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.ApplicationListener;
import org.springframework.context.event.ContextRefreshedEvent;

import com.beyond.constant.ApplicationConstant;
import com.beyond.mapper.AccountStatusPOMapper;
import com.beyond.po.AccountStatusPO;

*/
/**
 * 
 * @ClassName: LoginStatus
 * @Description: TODO(初始化账户的 登录状态)
 * 
 *//*

public class LoginStatus implements ApplicationListener<ContextRefreshedEvent> {
	
	private static Logger logger = Logger.getLogger(LoginStatus.class);
	
	@Autowired
	private AccountStatusPOMapper accountStatusPOMapper;

	@Override
	public void onApplicationEvent(ContextRefreshedEvent event) {
		if (event.getApplicationContext().getParent() != null) {
			return;
		}
		try {
			List<AccountStatusPO> accountStatusPOList = accountStatusPOMapper.selectByExample(null);
			for (AccountStatusPO po : accountStatusPOList) {
				ApplicationConstant.status.put(po.getExtend(), po.getExtendType());
			}
		} catch (Exception e) {
			e.printStackTrace();
			logger.error("系统启动异常:初始化登陆状态失败!"+e.getMessage());
			System.exit(0);
		}
	}

}
*/
